package cn.itsource.org.domain;

import lombok.Data;

import java.util.List;

@Data//帮助生成get  set tostring
public class Department {
    private Long id;
    private String sn;
    private String name;
    private Integer state;
    private String dirPath;
    private Long manager_id;
    private Employee manager;

    private Long parent_id;
    private Department parent;
    private List<Department> children;

    public String getValue(){
        return String.valueOf(id);
    }
    public String getLabel(){
        return name;
    }
}
